import { defHttp } from "@/utils/http";

// ERP 门诊收费API
export const chargeApi = {
	// 获得门诊收费分页
	chargeList: async (params: any) => {
		return await defHttp.get({ url: `/his/pat-orders-items/patPage`, params });
	},
	// 新增门诊收费
	chargeCreate: async (data: any) => {
		return await defHttp.post({ url: `/his/pat-orders-items/create`, data });
	},

	// 修改门诊收费
	chargeUpdate: async (data: any) => {
		return await defHttp.put({ url: `/his/pat-orders-items/update`, data });
	},

	// 删除门诊收费
	chargeDelete: async (id: number) => {
		return await defHttp.delete({ url: `/his/pat-orders-items/delete?id=` + id });
	},
	//获得账户信息分页
	accountsList: async (params: any) => {
		return await defHttp.get({ url: `/his/accounts/page`, params });
	}
};
